https://www.gta5-mods.com/scripts/optical-camouflage

Default Controls:
Gamepads:
Hold RB (Handbrake/Cover button) and press DPad UP to toggle the Optical Camouflage.
Hold the Sprint button and press DPad UP to toggle Walk Through Walls. Optical Camouflage must be enabled as well.

Keyboards:
Hold CTRL (Stealth key) and press Jump (Spacebar) to toggle the Optical Camouflage.
Tap the L key to toggle Walk Through Walls. Optical Camouflage must be enabled as well.

Changelog:
1.0 First release.

1.1
Added "Hardcore" settings to give more of a challenge! Please see the added items at the bottom of the Feature list.

1.1.1
Fixed (hopefully) a compatibility bug with Eddlm's "LSPD: Dangerous Individuals" mod (it caused cops to shoot at you despite being a "cop" yourself).

1.5
Fixed lag that some PCs may have experienced.
Cops will stop "shaking" while mod is on (it looks smoother).
Enemies in helicopters and tanks will no longer know where you are when camouflaged (tanks will shoot in random directions in an attempt to hit you).
Added a "trail light" effect when camouflaged (toggle-able in the ini file).
Enemies won't spot you right away when you enter a vehicle, they will only notice once you start moving.
Enemies won't always spot you right away if you use a weapon or punch someone.

1.6
Now you can set your own toggle keys.
Also, any bodyguards you have will use Optical Camouflage too!

2.0
- Added Walk Through Walls ability. See readme or ini settings for controls.
- Added invisible weapons. (Thanks @GeorgeZhang !!!)
- Vehicles will now run over you when you are camouflaged and standing in their way.
- Police will no longer know where you are, as long as you are camouflaged. They will even drive right past you in most cases!
- The script should run a bit smoother now.

Requirements:
- ScripthookV
- ScripthookV.NET

Instructions:
Place the "scripts" folder in your GTA 5 installation directory.